home *** CD-ROM | disk | FTP | other *** search
- >** - top of file -|
- >**
-
- xternal.do V. 3.0.0 - 07/03/91.
-
- Copyright (C) 1992 by Al Fasoldt.
-
- This is an example of a script that creates a mini-BBS.
-
- I used this daily for about six months when I lived away from my
- home. My ST at home was running on autopilot, making daily
- telecomm calls, and I accessed it through a laptop computer.
-
- One interesting function that XTERNAL.DO has is the ability to
- run a DO script on command from a caller. It should be pretty
- obvious how it is done if you read through the script.
-
- The passwords and codes that were used are intact here. But you
- can use your own. (No, I am not running this any more, so you
- can stop worrying that someone will pick up an access code and
- get into my computer.)
-
- |
- >$H |
- >$U |
- >$W |
- >$X |
- >op c:\drivchek.dat|
- >if op jmp setparms|
- >$H "NOTE: Hard drive is off or not responding.||"|
- >L: setparms|
- >ca off|>mo at|>du ha|>echo off|>lf on|>xm 8clz|>cd p:\|>$P "A:\"|
- >ifi $X "setparms" jmp mainmenu|
- >L: top|
- >$P "A:\"|>** default path variable|
- >send "||"|
- >send "||"|
- >send "Waiting for confirmation.... You have 120 seconds.||"|
- >get $Z 122|
- >if ~Z jmp quickquit|
- >ifi $Z "TT" jmp OK|
- >ifi $Z "Bob Fasoldt" jmp OK|
- >ifi $Z "Robert Fasoldt" jmp OK|
- >jmp quickquit|
- >L: OK|
- >send "||"|
- >send "||"|
- >send "XTERNAL FILE TRANSFER PROGRAM, VERSION 1.3.1|"|
- >send "BY AL FASOLDT. COPYRIGHT 1991.|"|
- >send "||"|
- >ifi $Z "Fasoldt" jmp mainmenu|
- >ifi $Z "TT" send "<A>utomatic or <M>anual operation (a/M)? "|
- >get $X 10|
- >ifi $X "A" jmp auto|
- >L: mainmenu|
- >$X |
- >send "||"|
- >ifi $H "off" send $H|
- >send "||"|
- >send "MAIN MENU|"|
- >send "*********||"|
- >ifi $Z "TT" send "<P>ath|"|
- >send "<S>end xmodem|"|
- >send "<R>eceive xmodem|"|
- >ifi $Z "TT" send "<V>iew personal messages|"|
- >ifi $Z "TT" send "<L>ist files in selected path or directory|"|
- >ifi $Z "TT" send "<X>modem transfer list|"|
- >ifi $Z "TT" send "<Z>modem send or receive|"|
- >ifi $Z "TT" send "<D>o TOBOB.DO Flash script|"|
- >ifi $Z "TT" send "<E>xecute any other Flash script|"|
- >ifi $Z "TT" send "<C>opy any file|"|
- >ifi $Z "TT" send "<K>ill any file|"|
- >send "<Q>uit|"|
- >send "<?> This menu again|"|
- >send "||Your choice: "|
- >get $X 60|
- >if ~X jmp warning|
- >L: choices|
- >ifi $X "P" jmp getpathvar|
- >ifi $X "S" jmp getvar_upl|
- >ifi $X "V" jmp bobmsg|
- >ifi $X "L" jmp dirlist|
- >ifi $X "Z" jmp zmodem|
- >ifi $X "X" jmp xmodir|
- >ifi $X "D" jmp tobob_script|
- >ifi $X "E" jmp flash_command|
- >ifi $X "R" jmp getvar_dnl|
- >ifi $X "K" jmp delete|
- >ifi $X "C" jmp copy|
- >ifi $X "Q" jmp zipout|
- >ifi $X "?" jmp mainmenu|
- >send "||Command not recognized.|"|
- >jmp mainmenu|
- >L: getpathvar|
- >ifi $Z "Fasoldt" jmp mainmenu|
- >send ""|
- >send "||"|
- >send "Type directory path, including backslashes,|"|
- >send "for current file operations.||"|
- >send "Press <RETURN> for default (Drive A):|"|
- >get $P 60|
- >if ~P jmp varA|
- >jmp mainmenu|
- >L: varA|
- >$P "A:\"|
- >jmp mainmenu|
- >L: dirlist|
- >ddir $P*.* o:\temp.dir|
- >send "||Files in the path you choose:||"|
- >send "||"|
- >ul as o:\temp.dir|
- >jmp mainmenu|
- >L: bobmsg|
- >send ""||"|
- >send "Transfering FROMBOB.TXT to you ...||"|
- >send "||"|
- >ul as a:\frombob.txt|
- >pa 1|
- >jmp mainmenu|
- >L: xmodir|
- >ifi $Z "Fasoldt" jmp mainmenu|
- >send "||"|
- >send "Xmodem file directory of Drive A ...||"|
- >ddir a:\FBXM*.* o:\temp.dir|
- >send ""|
- >send "||"|
- >ul as o:\temp.dir|
- >jmp mainmenu|
- >L: getvar_dnl|
- >send "||"|
- >$X |
- >send ""|
- >send "Please type the name of the file: "|
- >get $X|
- >if ~X jmp getvar_upl|
- >send "||"|
- >send ""|
- >send "Ready to send ` "$X `" to your system.||"|
- >send "|Beginning transfer.||"|
- >pa 4|
- >ul xm $P$X|
- >if ~ul jmp ul_failed|
- >$Y |
- >send ""|
- >send "||"|
- >send "Do you want to download another file by Xmodem (y/N)? "|
- >get $X|
- >ifi $X "Y" jmp getvar_dnl|
- >jmp mainmenu|
- >L: zmodem|
- >send "||"|
- >$X |
- >send ""|
- >send "<S>end or <R>eceive zmodem? "|
- >get $X|
- >if ~X jmp mainmenul|
- >ifi $X "R" jmp getznames|
- >ifi $X "S" jmp reczmodem|
- >jmp mainmenu|
- >L: getznames|
- >send "|||Please type the filename(s) you wish to receive.|"|
- >send "Wildcards are OK.|"|
- >send ": "|
- >get $X|
- >if ~X jmp mainmenul|
- >send "|||Ready to send your zmodem download.|"|
- >cd $P|
- >pa 2|
- >exec o:\xyz.ttp -u $X|
- >cd p:\|
- >jmp mainmenu|
- >L: reczmodem|
- >send "|||Ready to receive your zmodem upload.|"|
- >cd $P|
- >pa 5|
- >exec o:\xyz.ttp|
- >cd p:\|
- >jmp mainmenu|
- >L: getvar_upl|
- >pa 1|
- >$X |
- >send ""|
- >send "||"|
- >send "Please type the name of the file: "|
- >get $X|
- >if ~X jmp upy2|
- >jmp upy3|
- >L: upy2|
- >$X |
- >send ""|
- >send "||"|
- >send "PLEASE type the name of the file: "|
- >get $X|
- >if ~X jmp mainmenu|
- >L: upy3|
- >send ""|
- >send "||"|
- >send "Ready to receive ` "$X `" from your system.||"|
- >send "Begin transfer...||"|
- >pa 3|
- >dl xm $P$X|
- >if ~dl jmp dl_failed|
- >send "||"|
- >jmp mainmenu|
- >L: ul_failed|
- >$X |
- >send "◆◆◆◆◆◆"|
- >send "||"|
- >send ""|
- >send "UPLOAD TO YOUR SYSTEM FAILED!||"|
- >send "Do you want to try again (y/N)? "|
- >get $X|
- >ifi $X "Y" jmp getvar_dnl|
- >send "||"|
- >jmp mainmenu|
- >L: dl_failed|
- >$X |
- >send "◆◆◆◆◆◆"|
- >send "||"|
- >send ""|
- >send "DOWNLOAD FROM YOUR SYSTEM FAILED!||"|
- >send "Do you want to try again (y/N)? "|
- >get $X|
- >ifi $X "Y" jmp getvar_upl|
- >jmp mainmenu|
- >L: delete|
- >ifi $Z "Fasoldt" jmp mainmenu|
- >send ""|
- >send "||"|
- >send "Name of the file to delete:||"|
- >get $X|
- >op $P$X|
- >if ~op jmp notfound|
- >send "||"|
- >send "File located. Press <RETURN> to cancel, <Y> to delete. "|
- >get $Y|
- >ifi $Y "Y" jmp doit|
- >jmp mainmenu|
- >L: doit|
- >kill $P$X|
- >pa 2|
- >op $P$X|
- >if ~op jmp killed|
- >send "||"|
- >send "File not deleted!||"|
- >jmp mainmenu|
- >L: notfound|
- >send "||"|
- >send "File not found!||"|
- >pa 2|
- >jmp mainmenu|
- >L: killed|
- >send "||"|
- >send "File deleted!||"|
- >pa 2|
- >jmp mainmenu|
- >L: zipout|
- >$X |
- >send ""|
- >send "||"|
- >send "||"|
- >send "Thank you for calling!|"|
- >send "||"|
- >L: quickquit|
- >cd p:\|
- >lf off|
- >HG|
- >end|
- >L: auto|
- >ifi $Z "Fasoldt" jmp mainmenu|
- >if ~ca jmp quickquit|
- >send "||"|
- >send ""|
- >send "Auto mode on.||"|
- >send "Uploading FROMBOB.TXT by ASCII transfer.||"|
- >ul as a:\frombob.txt|
- >pa 1|
- >send "||"|
- >send "End of ASCII upload.||"|
- >send "◆◆◆"|
- >send ""|
- >send "Downloading TOBOB.TXT by Xmodem transfer. Start your upload.||"|
- >pa 4|
- >dl xm a:\tobob.txt|
- >if ~dl jmp dl_try_2|
- >pa 1|
- >send "||"|
- >send ""|
- >send "Finished!||"|
- >jmp quickquit|
- >L: dl_try_2|
- >ifi $Z "Fasoldt" jmp mainmenu|
- >dl xm a:\tobob.txt|
- >if ~dl jmp no_dl|
- >pa 1|
- >send ""|
- >send "||"|
- >send "Finished!||"|
- >jmp quickquit|
- >L: no_dl|
- >send "||"|
- >send "◆◆◆◆◆◆◆◆◆◆"|
- >send ""|
- >send "Download unsucessful!||"|
- >jmp quickquit|
- >L: no_call|
- >lf off|
- >end|
- >L: copy|
- >ifi $Z "Fasoldt" jmp mainmenu|
- >send ""|
- >send "||"|
- >send "File to copy (full path name optional): "|
- >get $X 120 manual|
- >op $X|
- >if ~op jmp nocopy|
- >send "||"|
- >send "Copy to (full path name optional): "|
- >get $Y 120|
- >if ~Y jmp mainmenu|
- >ca cl|
- >ca on|
- >lo ca $X|
- >sa ca $Y|
- >ca cl|
- >send "||"|
- >send "Copy finished.||"|
- >pa 2|
- >jmp mainmenu|
- >L: nocopy|
- >send "||"|
- >send "Target file not found!||"|
- >pa 5|
- >jmp mainmenu|
- >L: warning|
- >send "◆◆ ◆◆ ◆ ◆◆ ◆◆◆◆ ◆◆ ◆ ◆◆ ◆◆ ◆◆"|
- >send "◆◆ ◆ ◆ ◆◆◆◆◆◆◆◆◆ ◆◆◆◆◆◆◆◆◆"|
- >send "Please respond within 60 seconds...|"|
- >get $X 62|
- >ifi $W "slow response" jmp quickquit|
- >$W "slow response"|
- >jmp mainmenu|
- >L: tobob_script|
- >$U "do tobob.do"|
- >send ""|
- >send "||"|
- >send "Executing TOBOB.DO...|"|
- >jmp quickquit|
- >L: flash_command|
- >send ""|
- >send "||"|
- >send "Type the name of the DO file you want to execute.||"|
- >send "Do NOT type `"DO`" in front of the command.|"|
- >send "Type the full name (with extender) of the DO file only.||"|
- >send "Type `"HELP`" for a list of available DO files.||"|
- >send "Press <RETURN> to exit to Main Menu.||"|
- >send ": "|
- >get $X 62|
- >if ~X jmp mainmenu|
- >ifi $X ".do" jmp do_execute|
- >ifi $X "do" jmp flash_command|
- >ifi $X "?" jmp flash_command|
- >ifi $X "help" ddir p:\ex*.do o:\xterndo.lst|
- >ifi $X "help" ul as o:\xterndo.lst|
- >jmp flash_command|
- >L: do_execute|
- >do $X|
- >$X setparms|
- >jmp setparms|
- >** end|
-